'''
* This is the projet for Brtc LlmOps Platform
* @Author Leon-liao <liaosiliang@alltman.com>
* @Description //TODO 
* @File: 3_base_of_combine_with_prompt.py
* @Time: 2025/10/22
* @All Rights Reserve By Brtc
'''
from langchain_core.prompts import ChatPromptTemplate

""" 
消息提示词拼接
就是两个 prompt 之间进行一个拼接
"""
system_chat_prompt = ChatPromptTemplate.from_messages(
    [("system", "你是OpenAI开发的机器人,请根据用户的内容来回答问题， 我的名字叫 {username}")]
)

human_chat_prompt = ChatPromptTemplate.from_messages([("human", "{query}")])

chat_prompt = system_chat_prompt + human_chat_prompt
print(chat_prompt.invoke({
    "username":"博小睿",
    "query":"如何能够挣一个亿"
}))